package com.example.makerspace.domain;


import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@EqualsAndHashCode(callSuper = true)
@TableName(value = "personal_recommendations")
@Data
@Document(indexName = "personal_recommendations")
public class PersonalRecommendationsDO extends  BaseDO {
    @Field(name = "username", type = FieldType.Text, analyzer = "ik_max_word")
    private String username;
    @Field(name = "product_id", type = FieldType.Text, analyzer = "ik_max_word")
    private Integer productId;
    @Field(name = "stay", type = FieldType.Text, analyzer = "ik_max_word")
    private Integer stay;
    @Field(name = "weight", type = FieldType.Text, analyzer = "ik_max_word")
    private Double weight;
    @Field(name = "per_weight", type = FieldType.Text, analyzer = "ik_max_word")
    private  Double perWeight;
}
